#pragma once

#include"base.h"

bool topsort(int n, int g[][N], int *ve, int *queue);

void get_vl(int n, int g[][N], int *ve, int *vl, int *queue);

void print_path(int n, int g[][N], char *data,
                int *ve, int *vl, int *queue,
                bool is_vital_path[][N]);

void print_vital_path(int n, int g[][N], char *data,
                      int *ve, int *vl, int *queue,
                      bool is_vital_path[][N]
);